package com.onlinevideo.entity;

public class Message {
    private Long id;

    private Long userId;

    private String context;

    private Integer hasRead;

    private String time;

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", userId=" + userId +
                ", context='" + context + '\'' +
                ", hasRead=" + hasRead +
                ", time='" + time + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Integer getHasRead() {
        return hasRead;
    }

    public void setHasRead(Integer hasRead) {
        this.hasRead = hasRead;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Message() {
    }

    public Message(Long id, Long userId, String context, Integer hasRead, String time) {
        this.id = id;
        this.userId = userId;
        this.context = context;
        this.hasRead = hasRead;
        this.time = time;
    }
}
